/**
 * 
 */
package com.shine.icis.blo.imp;

import com.shine.cotrun.sql.QueryParameters;
import com.shine.cotrun.web.comm.ListPage;
import com.shine.icis.blo.ISubmitCalendarService;
import com.shine.icis.dao.ISubmitCalendarDAO;
import com.shine.icis.exception.ICISException;
import com.shine.icis.hbean.SubmitCalendar;

/**
 * 报送日历维护
 * @author zhangxr
 *
 */
public class SubmitCalendarService implements ISubmitCalendarService {
	
	private ISubmitCalendarDAO submitCalendarDAO;
	

	public void setSubmitCalendarDAO(ISubmitCalendarDAO submitCalendarDAO) {
		this.submitCalendarDAO = submitCalendarDAO;
	}

	/**
	 * 查询报送日历列表，分页显示
	 * @author zhangxr 2010-12-10
	 * @param qp
	 * */
	@Override
	public ListPage<SubmitCalendar> getSubmitCalendarPage(QueryParameters qp) {
		return this.submitCalendarDAO.findSubmitCalendarPage(qp);
	}
	
	/**
	 * 更改报送日历的是否交易日、增量与全量
	 * @author zhangxr 2010-12-10
	 * @param s
	 * */
	public void modifySubmitCalendar(SubmitCalendar s) throws ICISException {
		this.submitCalendarDAO.updateSubmitCalendar(s);
	}
}
